export function initPropertyOperation(props: any, context?: any) {}

export const initFetchDta = (props: any, context: any) => {}

export const propertyControlList = {
  circle: {
    // 圆
    label: true, // 注记
    name: false, // 名称
    radius: true, // 半径
    rotate: false, // 旋转角度
    longitude: true, // 经度
    latitude: true, // 纬度
    height: true, // 高度
  },
  circleLine: {
    // 圆（线）
    label: true,
    name: false,
    radius: true,
    rotate: false,
    longitude: true,
    latitude: true,
    height: true,
  },
  polygon: {
    // 多边形(面)
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  polygonLine: {
    // 多边形（线）
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  arrow: {
    // 实线箭头
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  line: {
    // 线
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  text: {
    // 文字
    label: true,
    name: false,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  command: {
    // 指挥部
    label: false,
    name: true,
    radius: false,
    rotate: false,
    longitude: true,
    latitude: true,
    height: true,
  },
  rearCar: {
    // 举高类消防车
    label: true,
    name: true,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  firefightCar: {
    // 灭火类消防车
    label: true,
    name: true,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  rescueCar: {
    // 抢险类消防车
    label: true,
    name: true,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  serviceCar: {
    // 专勤类消防车
    label: true,
    name: true,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  specialDevice: {
    // 特种装备
    label: true,
    name: true,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  fireHoses: {
    // 消防水枪
    label: false,
    name: false,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  fireMonitor: {
    // 消防炮
    label: false,
    name: true,
    radius: false,
    rotate: true,
    longitude: true,
    latitude: true,
    height: true,
  },
  pumpPoint: {
    // 泵组供水点
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: true,
    latitude: true,
    height: true,
  },
  attackingRoute: {
    // 进攻路线
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  evacuationRoute: {
    // 撤离路线
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  attackDirection: {
    // 进攻方向
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  accidentPoint: {
    // 事故点
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: true,
    latitude: true,
    height: true,
  },
  noThoroughfare: {
    // 禁止通行
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: true,
    latitude: true,
    height: true,
  },
  trappedPerson: {
    // 被困人员
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: true,
    latitude: true,
    height: true,
  },
  emergencyArea: {
    // 事故区
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  stagingArea: {
    // 集结区
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  waitingArea: {
    // 待命区
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  forbidArea: {
    // 禁停区
    label: false,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  equipmentArea: {
    // 装备器材区
    label: true,
    name: false,
    radius: false,
    rotate: false,
    longitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
  alertingArea: {
    // 警戒区
    label: true,
    name: false,
    radius: false,
    rotate: false,
    llongitude: false,
    latitude: false,
    height: false,
    jdHeight: true,
  },
}

export const attributeType = {
  '0': 'circle',
  '1': 'circleLine',
  '2': 'polygon',
  '3': 'polygonLine',
  '4': 'arrow',
  '5': 'line',
  '6': 'text',
  '7': 'command',
  '8': 'rearCar',
  '9': 'firefightCar',
  '10': 'rescueCar',
  '11': 'serviceCar',
  '12': 'specialDevice',
  '13': 'fireHoses',
  '14': 'fireMonitor',
  '15': 'pumpPoint',
  '16': 'attackingRoute',
  '17': 'evacuationRoute',
  '18': 'attackDirection',
  '19': 'accidentPoint',
  '20': 'noThoroughfare',
  '21': 'trappedPerson',
  '22': 'emergencyArea',
  '23': 'stagingArea',
  '24': 'waitingArea',
  '25': 'forbidArea',
  '26': 'equipmentArea',
  '27': 'alertingArea',
}

export const CarType = {
  '8': '21010200',
  '9': '21010100',
  '10': '21010400',
  '11': '21010300',
}

export const addIcon = `<svg width="15px" height="15px"> <path fill-rule="evenodd"  fill="rgb(127, 127, 127)" d="M1.999,-0.000 L11.999,-0.000 C13.104,-0.000 13.999,0.895 13.999,2.000 L13.999,12.000 C13.999,13.104 13.104,14.000 11.999,14.000 L1.999,14.000 C0.895,14.000 -0.001,13.104 -0.001,12.000 L-0.001,2.000 C-0.001,0.895 0.895,-0.000 1.999,-0.000 Z"/> <path fill-rule="evenodd"  stroke="rgb(255, 255, 255)" stroke-width="2px" stroke-linecap="butt" stroke-linejoin="miter" fill="none" d="M10.999,8.000 L7.999,8.000 L7.999,11.000 L5.999,11.000 L5.999,8.000 L2.999,8.000 L2.999,6.000 L5.999,6.000 L5.999,3.000 L7.999,3.000 L7.999,6.000 L10.999,6.000 L10.999,8.000 Z"/> </svg>`

export const decreaseIcon = `<svg width="15px" height="15px"> <path fill-rule="evenodd"  fill="rgb(127, 127, 127)" d="M1.999,-0.000 L11.999,-0.000 C13.104,-0.000 13.999,0.895 13.999,2.000 L13.999,12.000 C13.999,13.104 13.104,14.000 11.999,14.000 L1.999,14.000 C0.894,14.000 -0.001,13.104 -0.001,12.000 L-0.001,2.000 C-0.001,0.895 0.894,-0.000 1.999,-0.000 Z"/> <path fill-rule="evenodd"  stroke="rgb(255, 255, 255)" stroke-width="2px" stroke-linecap="butt" stroke-linejoin="miter" fill="none" d="M2.999,6.000 L10.999,6.000 L10.999,8.000 L2.999,8.000 L2.999,6.000 Z"/> </svg> `
